#include <stdio.h>

int main(int argc,char *argv[])
{
	float c,f;
	scanf("%f",&f);
	c = 5.0 / 9.0 * (f - 32.0);
	
	printf("c = %f\n",c);
	
	return 0;
}